/**
 * 您的公司.com
 * Copyright (c) 2018-2018 All Rights Reserved.
 */
package com.mei.demo;

import redis.clients.jedis.Jedis;

/**
 * 
 *
 * @author mei.xiaoliang@qq.com
 */
public class RedisJava {

    @SuppressWarnings("resource")
    public static void main(String[] args) {
        //连接本地的 Redis 服务
        Jedis jedis = new Jedis("localhost");
        System.out.println("连接成功");
        //查看服务是否运行
        System.out.println("服务正在运行: " + jedis.ping());
    }

}